/**
 * 
 */
package csc.daonjpa.java.domain;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * @author Training
 *
 */
@Entity
@DiscriminatorValue(value="card")
public class Card extends BaseInfo {
	/**
	 * 
	 */
	private static final long serialVersionUID = 777693484731422427L;

	@Column (name="type")
	private String cardType;
	
	@ManyToOne
	@JoinColumn(name="customerId")
	private Customer customer;
	
	public Card(){
		
	}
	
	public Card(Long cardNumber, String cardType, Customer customer) {
		super(cardNumber);
		this.cardType = cardType;
		this.customer = customer;
	}

	public final String getCardType() {
		return cardType;
	}

	public final void setCardType(String cardType) {
		this.cardType = cardType;
	}

	public final Customer getCustomer() {
		return customer;
	}

	public final void setCustomer(Customer customer) {
		this.customer = customer;
	}
}
